package sicau.carManager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.sql.Blob;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ITcz
 * @since 2021-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Admin对象", description="")
public class Admin implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "工号，以此为登录账号")
    private String jobNumber;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "校区")
    private String campus;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "个人照片的二进制流")
    private byte[] image;

    @ApiModelProperty(value = "权限，0代表普通管理员，1代表超级管理员")
    private Integer authority;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
